<?php
/**
 * wap 2.0 删除 购物袋商品
 */


if ($cart_id)
{
	// 取得要删除的商品的信息
	$cart_info = get_cart($user_token);

	foreach ((array)$cart_info as $value)
	{
		if ($val['cart_id'] == $cart_id)
		{
			$goods = $val;
			break;
		}
	}

	$result = $mInterface->deleteShopCart($cart_id, $user_token);

	if (empty($result))
	{
		wap_setcookie("WAP[shop_time]");
	}
	else
	{
		wap_setcookie("WAP[shop_time]", $now, 7200);
	}

	/* OMNITURE 统计  */
	include 'omniture/flow_cart_del_goods.php';

	die(json_encode(array('code'=>1)));

}